Why is my jQuery text.replace() function skipping some characters in strings

welcome to shbcf.ru